﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Validation;

namespace MemberManagement;

public abstract class MemberCreateOrUpdateParameterBase : ExtensibleObject
{
    [Required]
    [DynamicStringLength(typeof(MemberConsts), nameof(MemberConsts.MaxNameLength))]
    [Display(Name = "TenantName")]
    public string Name { get; set; }

    [Required]
    [DynamicStringLength(typeof(MemberConsts), nameof(MemberConsts.MaxPhoneNumberLength))]
    [Display(Name = "TenantDisplayName")]
    public string DisplayName { get; set; }

    [Display(Name = "TenantRemark")]
    public virtual string Remark { get; set; }

    public MemberCreateOrUpdateParameterBase() : base(false)
    {

    }
}
